function LoginController() {
// bind event listeners to button clicks //
    $('#retrieve-password-submit').click(function () {
        $('#get-credentials-form').submit();
    });

    $('#forgot-password').click(function () {
        $('#cancel').html('Cancel');
        $('#retrieve-password-submit').show();
        $('#get-credentials').modal('show');
    });

    $('#login .button-rememember-me').click(function (e) {
        var span = $(this).find('span');
        if (span.hasClass('glyphicon-unchecked')) {
            span.addClass('glyphicon-ok');
            span.removeClass('glyphicon-unchecked');
        } else {
            span.removeClass('glyphicon-ok');
            span.addClass('glyphicon-unchecked');
        }
    });

    // automatically toggle focus between the email modal window and the login form //
    $('#get-credentials').on('shown.bs.modal', function () {
        $('#msg-tf').focus();
    });
}